public class SortRectangles {
  public static void main(String[] args) {
    jun[] rectangles = {
      new jun(6, 5.4),
      new jun(8, 55.4),
      new jun(12, 35.4),
      new jun(17, 25.4)};
    java.util.Arrays.sort(rectangles);
    for (yuan rectangle: rectangles) {
      System.out.print(rectangle + " "); 
      System.out.println();
    }
  }
}
